package com.future.mayi.qsale.response;

import com.future.baselib.entity.BaseResponse;
import com.google.gson.reflect.TypeToken;
import com.future.mayi.app.App;
import com.future.mayi.qsale.model.CartListModel;

import org.json.JSONException;

import java.util.List;

/**
 * Created by Administrator on 2018/8/14.
 */

public class CartListResponse extends BaseResponse {

    private List<CartListModel> list;

    @Override
    public void parseInfo(String content) throws JSONException {
        list = App.getGson().fromJson(content, new TypeToken<List<CartListModel>>() {
        }.getType());
    }


    public List<CartListModel> getCartList(){
        return list;
    }
}
